package com.zhouyu.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.context.PayloadApplicationEvent;

public class ApplicationEvenListener implements ApplicationListener {
	@Override
	public void onApplicationEvent(ApplicationEvent event) {
		PayloadApplicationEvent payloadApplicationEvent = (PayloadApplicationEvent) event;
		System.out.println(payloadApplicationEvent);
	}
}
